<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>3_4_3-1-绑定布尔值</title>
</head>

<body>


  <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  <div id="Application">
    <input type="checkbox" v-model="checkbox" />
    <h2>布尔值:{{checkbox}}</h2>
  </div>
  <script>
    const App = {
      data() {
        return {
          checkbox: false,
        };
      },
    };
    Vue.createApp(App).mount("#Application");
  </script>
</body>

</html>